<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<th:block th:include="include/include :: header('分配权限')" />
<th:block th:include="include/include :: ztree-css" />
<script th:inline="javascript">
        var list = [[${idePermList}]];
</script>  
<style>
.perButn {
	margin-top: 10px;
	margin-left: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
</style>
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<input type="hidden" name="roleId" id="roleId" th:value="${roleId}" />
 <div class="nav-tabs-custom">
		 <ul class="nav nav-tabs">
			<li class="active"><a href="#tab_menus" data-toggle="tab"> 菜单权限 </a></li>
			<li><a href="#tab_ides" data-toggle="tab"> IDE权限 </a></li>
		</ul>
		<!-- <div class="form-group">
				<label class="col-sm-3 control-label">菜单权限</label>
				<div class="col-sm-8">
					<div id="menuTrees" class="ztree"></div>
				</div>
			</div> -->
		<div class="tab-content">
		<!-- 菜单权限tab -->
			<div class="tab-pane active" id="tab_menus">
				<div id="menuTrees" class="ztree"></div>
			</div>
			<!-- ide权限tab -->
			<div class="tab-pane" id="tab_ides">
					<div class="row">
                        <div class="col-md-12">
                            <div class="portlet light form-fit bordered">
                                <div class="portlet-body form">
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('create_')"><i class="fa fa-edit"></i>创建权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('query_')"><i class="fa fa-edit"></i>查看权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('register_')"><i class="fa fa-edit"></i>注册权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('generate_')"><i class="fa fa-edit"></i>生成权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('delete_')"><i class="fa fa-edit"></i>删除权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('reference_')"><i class="fa fa-edit"></i>引用权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('pack_')"><i class="fa fa-edit"></i>打包权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('export_')"><i class="fa fa-edit"></i>导出权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('update_')"><i class="fa fa-edit"></i>更新权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('modify_')"><i class="fa fa-edit"></i>修改权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('compile_')"><i class="fa fa-edit"></i>编译权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('config_')"><i class="fa fa-edit"></i>配置权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('deploy_')"><i class="fa fa-edit"></i>部署权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('import_')"><i class="fa fa-edit"></i>导入权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('debug_')"><i class="fa fa-edit"></i>调试权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('upload_')"><i class="fa fa-edit"></i>上传权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('saveas_')"><i class="fa fa-edit"></i>另存为权限</a>
									<a class="btn btn-xs  btn-warning perButn" onclick="permBtn('fastopen_')"><i class="fa fa-edit"></i>快捷打开方式权限</a>
                                </div>
                            </div>
                        </div>
                   </div>
				</div>
			</div>
		</div>
	</div>
	<div id="permBtnLayer" style="display: none;">
		<div id="permContent" style="margin-top: 8px;margin-left: 8px; width: 730px; height: 300px;">

		</div>
	<!-- 	<div class="form-actions" style="margin-right:10px; position:absolute; right:5px; bottom:5px;" align="right">
			<button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="slecetedAllPerm()">全选</button>
			<button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="savePermLayer()">保存</button> 
			<button type="button" class="btn blue-hoki"  style="margin-top:10px;" onclick="closePermLayer()">关闭</button>
		</div> -->
	</div>
	
	<th:block th:include="include/include :: footer" />
	<th:block th:include="include/include :: ztree-js" />
	<script th:src="@{/pages/sysadm/role/rolePerm.js}"></script>
</body>
</html>